#!/bin/bash

for queue in `ipcs -q | tail -n +4 | cut -d' ' -f2`; do
    echo "Destroying queue $queue"
    ipcrm -q $queue
done

echo "Done"

